#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2023/12/1 14:26
# @Author  : huidong.bai
# @File    : Conveyor.py
# @Software: PyCharm
# @Mail    : MasterBai2018@outlook.com


class Conveyor:
    def __init__(self):
        self.suite_id = -1              # suite的id，1，2
        self.suite_name = None          # suite的name
        self.suite_tag = None           # suite的tag标签, [ONLINE], [OFFLINE]等等
        self.config = None              # sdk，aibsEngine的配置文件: TestCase/decoder.conf
        self.case_list = None           # case列表: TestCase/case.txt
        self.scenario_config = None     # Scene级别的配置文件: TestCase/PT.release
        self.report = None              # report文件路径: workspace/solution_filter/FILTER:1_report_FUNCTION
        self.root_dir = None            # 当前运行的根路径: /Users/baihuidong/Desktop/workSpace/Pachira_Project/Mongo
        self.workspace = None           # workspace路径: workspace/solution_filter/FILTER
        self.solution_space = None      # solution的路径：workspace/solution_filter
        self.filter_case_line = None    # case过滤： 1-20
        self.suite_abstract = None      # suite简介
        self.suite_dir = None           # suite路径
        self.case_nums = 0              # case总数
        self.run_case_list = None       # 运行的Case总数
        self.source_lcs_config = None   # lcs配置文件路径
        self.lcs_config = None          # lcs配置文件路径
        self.lsc_engine = None          # lcs引擎路径
        self.detail = None              # 详细信息开关
        self.gdb = None                 # gdb 模式开关
        self.parse_yaml = None          # 字段解析文件路径
        self.param_event_yaml = None    # case字段映射事件文件路径
        self.lang_runner = None         # 运行语种信息
        self.appid = None               # 运行appid
        self.sre_appid = None           # 声纹客户端appid
        self.voi_appid = None           # 语音输入法客户端appid
        self.carplay_sdk_path = None    # carplay sdk路径
        self.carplay_config = None      # carplay 配置文件
        self.abs_time = None            # 送音频方式配置
        self.ecnr_path = None           # ECNR测试库路径

        self.aibs_client_path = None    # aibs_client库路径
        self.aibs_client_config = None  # aibs_client配置文件
        self.case_header = None         # case headers
        self.nlu_input_path = None      # 理解输入事件路径
        self.nlu_callback_path = None   # 理解回调事件路径

        self.lcs_pid = None             # lcs进程号
        self.speech_pid = None          # speech进程号
        self.aibs_pid = None            # aibs进程号
        self.global_tag = None           # top进程全局标志
        self.project = None              # 设置是开启bev项目
